public class Teacher extends People{
    //默认存在的

    //静态里面不可以使用非静态的东西
//    public static void main(String[] args) {
//        System.out.println(super.name);
//    }

//    public void show(){
//        System.out.println(name);
//    }
    public Teacher(){
        super();
    }

    public Teacher(String name, int age) {
        super(name, age);
    }

    public void teach(){
        System.out.println("teaching...");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
